package com.engine.core.interceptor;

/**
 * 先判断后执行
 * @param <T>
 * @param <R>
 */
public interface JudgementCommad<T,R extends CommandContext> {
    boolean judgement(T lastResponse,R commandContext) throws Exception;

    T action(T lastResponse,R commandContext) throws Exception;;
}
